cmake_minimum_required( VERSION 2.6 FATAL_ERROR )

SET(CMAKE_MODULE_PATH "${BTD_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
INCLUDE_DIRECTORIES(/usr/local/include)
LINK_DIRECTORIES(${CMAKE_SOURCE_DIR})


FIND_PACKAGE(OpenSceneGraph 2.8.2 REQUIRED QUIET COMPONENTS osg osgText osgViewer osgDB)

SET(TARGET_COMMON_LIBRARIES 
    osg 
    osgText
    osgViewer  
    osgDB
)



SET (SOURCES
src/osgMesh.cpp
)

SET (EXECUTABLE_NAME
bin/mesh
)

add_executable (
${EXECUTABLE_NAME}
${SOURCES}
)

target_link_libraries (
${EXECUTABLE_NAME} 
osg osgText osgViewer osgDB
)

